home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / chrome / nsIToolkitChromeRegistry.h
C/C++ Source or Header  |  2006-05-08  |  7KB  |  151 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIToolkitChromeRegistry.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIToolkitChromeRegistry_h__
  6. #define __gen_nsIToolkitChromeRegistry_h__
  7.  
  8.  
  9. #ifndef __gen_nsIChromeRegistry_h__
  10. #include "nsIChromeRegistry.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIURI; /* forward declaration */
  18.  
  19. class nsIUTF8StringEnumerator; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    nsIToolkitChromeRegistry */
  23. #define NS_ITOOLKITCHROMEREGISTRY_IID_STR "94490b3f-f094-418e-b1b9-73878d29bff3"
  24.  
  25. #define NS_ITOOLKITCHROMEREGISTRY_IID \
  26.   {0x94490b3f, 0xf094, 0x418e, \
  27.     { 0xb1, 0xb9, 0x73, 0x87, 0x8d, 0x29, 0xbf, 0xf3 }}
  28.  
  29. class NS_NO_VTABLE nsIToolkitChromeRegistry : public nsIXULChromeRegistry {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ITOOLKITCHROMEREGISTRY_IID)
  33.  
  34.   /**
  35.    * The "canonical" manifest is a plaintext file which sits outside of a
  36.    * JAR file. To provide backwards-compatibility with contents.rdf, we provide
  37.    * this function which reads a contents.rdf manifest and writes it to a file.
  38.    *
  39.    * @param aOldManifestURI  The URI of an old manifest to read, without
  40.    *                         the trailing "contents.rdf", e.g.
  41.    *                         "jar:resource:///chrome/foo.jar!/content/foo/" or
  42.    *                         "file://path/to/contents/rdf/"
  43.    * @param aFile            The URI of a manifest file to write. It's a good
  44.    *                         idea to use a resource: URI if possible.
  45.    * @param aBaseURI         The base URI for relative path creation
  46.    *                         "jar:resource:///chrome/foo.jar!/content/foo/"
  47.    *                         this is a separate param from aOldManifestURI so
  48.    *                         the "contents.rdf" can be read outside of the jar
  49.    *                         to keep the zipreader cache from holding it open.
  50.    * @param aAppend          Whether we should append to an existing manifest
  51.    *                         or truncate and start empty.
  52.    * @param aSkinOnly        Only allow skin packages.
  53.    */
  54.   /* void processContentsManifest (in nsIURI aOldManifestURI, in nsIURI aFile, in nsIURI aBaseURI, in boolean aAppend, in boolean aSkinOnly); */
  55.   NS_IMETHOD ProcessContentsManifest(nsIURI *aOldManifestURI, nsIURI *aFile, nsIURI *aBaseURI, PRBool aAppend, PRBool aSkinOnly) = 0;
  56.  
  57.   /**
  58.    * If the OS has a "high-visibility" or "disabled-friendly" theme set,
  59.    * we want to force mozilla into the classic theme, which (for the most part
  60.    * obeys the system color/font settings. We cannot do this at initialization,
  61.    * because it depends on the toolkit (GTK2) being initialized, which is
  62.    * not the case in some embedding situations. Embedders have to manually
  63.    * call this method during the startup process.
  64.    */
  65.   /* void checkForOSAccessibility (); */
  66.   NS_IMETHOD CheckForOSAccessibility(void) = 0;
  67.  
  68.   /**
  69.    * Get a list of locales available for the specified package.
  70.    */
  71.   /* nsIUTF8StringEnumerator getLocalesForPackage (in AUTF8String aPackage); */
  72.   NS_IMETHOD GetLocalesForPackage(const nsACString & aPackage, nsIUTF8StringEnumerator **_retval) = 0;
  73.  
  74. };
  75.  
  76. /* Use this macro when declaring classes that implement this interface. */
  77. #define NS_DECL_NSITOOLKITCHROMEREGISTRY \
  78.   NS_IMETHOD ProcessContentsManifest(nsIURI *aOldManifestURI, nsIURI *aFile, nsIURI *aBaseURI, PRBool aAppend, PRBool aSkinOnly); \
  79.   NS_IMETHOD CheckForOSAccessibility(void); \
  80.   NS_IMETHOD GetLocalesForPackage(const nsACString & aPackage, nsIUTF8StringEnumerator **_retval); 
  81.  
  82. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  83. #define NS_FORWARD_NSITOOLKITCHROMEREGISTRY(_to) \
  84.   NS_IMETHOD ProcessContentsManifest(nsIURI *aOldManifestURI, nsIURI *aFile, nsIURI *aBaseURI, PRBool aAppend, PRBool aSkinOnly) { return _to ProcessContentsManifest(aOldManifestURI, aFile, aBaseURI, aAppend, aSkinOnly); } \
  85.   NS_IMETHOD CheckForOSAccessibility(void) { return _to CheckForOSAccessibility(); } \
  86.   NS_IMETHOD GetLocalesForPackage(const nsACString & aPackage, nsIUTF8StringEnumerator **_retval) { return _to GetLocalesForPackage(aPackage, _retval); } 
  87.  
  88. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  89. #define NS_FORWARD_SAFE_NSITOOLKITCHROMEREGISTRY(_to) \
  90.   NS_IMETHOD ProcessContentsManifest(nsIURI *aOldManifestURI, nsIURI *aFile, nsIURI *aBaseURI, PRBool aAppend, PRBool aSkinOnly) { return !_to ? NS_ERROR_NULL_POINTER : _to->ProcessContentsManifest(aOldManifestURI, aFile, aBaseURI, aAppend, aSkinOnly); } \
  91.   NS_IMETHOD CheckForOSAccessibility(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckForOSAccessibility(); } \
  92.   NS_IMETHOD GetLocalesForPackage(const nsACString & aPackage, nsIUTF8StringEnumerator **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocalesForPackage(aPackage, _retval); } 
  93.  
  94. #if 0
  95. /* Use the code below as a template for the implementation class for this interface. */
  96.  
  97. /* Header file */
  98. class nsToolkitChromeRegistry : public nsIToolkitChromeRegistry
  99. {
  100. public:
  101.   NS_DECL_ISUPPORTS
  102.   NS_DECL_NSITOOLKITCHROMEREGISTRY
  103.  
  104.   nsToolkitChromeRegistry();
  105.  
  106. private:
  107.   ~nsToolkitChromeRegistry();
  108.  
  109. protected:
  110.   /* additional members */
  111. };
  112.  
  113. /* Implementation file */
  114. NS_IMPL_ISUPPORTS1(nsToolkitChromeRegistry, nsIToolkitChromeRegistry)
  115.  
  116. nsToolkitChromeRegistry::nsToolkitChromeRegistry()
  117. {
  118.   /* member initializers and constructor code */
  119. }
  120.  
  121. nsToolkitChromeRegistry::~nsToolkitChromeRegistry()
  122. {
  123.   /* destructor code */
  124. }
  125.  
  126. /* void processContentsManifest (in nsIURI aOldManifestURI, in nsIURI aFile, in nsIURI aBaseURI, in boolean aAppend, in boolean aSkinOnly); */
  127. NS_IMETHODIMP nsToolkitChromeRegistry::ProcessContentsManifest(nsIURI *aOldManifestURI, nsIURI *aFile, nsIURI *aBaseURI, PRBool aAppend, PRBool aSkinOnly)
  128. {
  129.     return NS_ERROR_NOT_IMPLEMENTED;
  130. }
  131.  
  132. /* void checkForOSAccessibility (); */
  133. NS_IMETHODIMP nsToolkitChromeRegistry::CheckForOSAccessibility()
  134. {
  135.     return NS_ERROR_NOT_IMPLEMENTED;
  136. }
  137.  
  138. /* nsIUTF8StringEnumerator getLocalesForPackage (in AUTF8String aPackage); */
  139. NS_IMETHODIMP nsToolkitChromeRegistry::GetLocalesForPackage(const nsACString & aPackage, nsIUTF8StringEnumerator **_retval)
  140. {
  141.     return NS_ERROR_NOT_IMPLEMENTED;
  142. }
  143.  
  144. /* End of implementation class template. */
  145. #endif
  146.  
  147. #define NS_CHROME_MANIFESTS_FILE_LIST "ChromeML"
  148. #define NS_SKIN_MANIFESTS_FILE_LIST "SkinML"
  149.  
  150. #endif /* __gen_nsIToolkitChromeRegistry_h__ */
  151.